<?php
/**
*   动态图
*/
namespace app\api\model;
use think\Model;

class Banner extends Model
{
    /**
    *   列表
    */
    public function _list($where, $order_by="sort asc"){
        $obj = $this->order($order_by);
        $data = $this->where($where)
            ->field('id, title, title_en, summary, image, link_type, link')
            ->order($order_by)
            ->select()
            ->toArray();
        return $data;
    }
}